package com.cxb.apiDriver.controller;

import com.cxb.internalcommon.dto.ResponseResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    /*
     * 需要授权的接口
     * */
    @GetMapping("/auth")
    public ResponseResult authtest(){
        return ResponseResult.success("auth test");
    }

    /*
     * 没有token能正常返回*/
    @GetMapping("/noauth")
    public  ResponseResult noauthtest(){
        return ResponseResult.success("noauth test");
    }
}
